const Service = require('egg').Service

class BgimgService extends Service{
  async getBgimg(id) {
    const {ctx} = this
    return await ctx.model.Image.findAll({
      where: {
        id
      }
    })
  }
}

module.exports = BgimgService